Note: This tutorial assumes that you have completed the previous tutorials: ROS Tutorials.
(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Installing rosserial_embeddedlinux

Description: This tutorial shows how to set up the ROS environment, and gives some hints to consider when setting up your embedded linux development environment.

Tutorial Level: BEGINNER

Next Tutorial: www.ros.org/wiki/rosserial_embeddedlinux/Tutorials/Hello Ros Create an Example Publisher

Installation, Build and Development Overview

The list below is a summary of the steps you'll take to set up the build environment for your embedded linux system.

  1. Install the rosserial stack on your ros workstation (the Ubuntu system where you build and run ROS software).
  2. Build the rosserial_embeddedlinux package. This creates the libraries and examples directories.
  3. Copy the libraries and examples directories to your embedded linux development environment (which may be on your ros workstation or elsewhere: e.g. a Windows PC).
  4. Configure your embedded linux development environment by adding the libraries/ros_lib directory to the #include search path
  5. Build an embedded linux application that uses ros interfaces (usually with a cross-compiler - see your development environment documentation)
  6. Download the application to the target embedded linux system and test/debug.

Follow the specific installation instructions and tutorial build instructions for your particular embedded linux system below if provided. If your system is not listed, follow the instructions for the Generic Embedded Linux System, and please consider enhancing this documentation by writing a step-by-step instruction for your system.

Using the Library in Embedded Linux ROS Nodes

Our ROS bindings are implemented as a set of files #included by your program when you #include <ros.h>. Your program becomes a ROS node when it runs.

In order to use the rosserial library in your own code, you must first put

#include <ros.h>

prior to including any other header files, e.g.

#include <std_msgs/String.h>

otherwise the compiler may not be able to locate them.

Now build and run the Hello Ros (example publisher) tutorial

Wiki: rosserial_embeddedlinux/Tutorials/Install rosserial_embeddedlinux (last edited 2013-03-10 00:13:06 by PaulBouchier)